package com.dj.ms.annotation;


import com.dj.ms.aop.CollectionLengthValidator;

import javax.validation.Constraint;
import javax.validation.Payload;
import java.lang.annotation.*;

/**
 * @author ZJG
 */
@Documented
@Target(ElementType.FIELD)
@Retention(RetentionPolicy.RUNTIME)
@Constraint(validatedBy = {CollectionLengthValidator.class})
public @interface CollectionLengthVerify {

    int lengthMax() default 20;

    String message() default "参数太多";

    Class<?>[] groups() default {};

    Class<? extends Payload>[] payload() default {};

}
